import React,{Component} from 'react';
import Lang from './Lang.json';
import './recruitment.less';
class Recruitment extends Component{
    render()
    {
        let prefix = 'recruitment';
        let postEle = Lang.map((value,index)=>{
            return(
                <div key={index} className={prefix+'-post-container'}>
                    <p id={prefix+"-post-title"}>{value.name}</p>
                    <div className={prefix+'-introduction clearfix'}>
                        <div className={prefix+'-introduction-title'}>{value.responsibilities.name}</div>
                        <div className={prefix+'-introduction-list clearfix'}>
                            {value.responsibilities.list.map((list,key)=>{
                                return(
                                    <li key={key}>
                                        {list}
                                    </li>
                                )
                            })}
                        </div>
                    </div>
                    <div className={prefix+'-introduction clearfix'}>
                        <div className={prefix+'-introduction-title'}>{value.request.name}</div>
                        <div className={prefix+'-introduction-list clearfix'}>
                            {value.request.list.map((list,key)=>{
                                return(
                                    <li key={key}>
                                        {list}
                                    </li>
                                )
                            })}
                        </div>
                    </div>
                </div>
            )
        });
        return (
            <div className={prefix}>
                <div className={prefix+"-phone"}>
                    <p id={prefix+"-title"}>招聘邮箱及电话</p>
                    <p>联系电话：010—64058820</p>
                    <p>联系人：乔娜</p>
                    <p>邮箱：yilutonghr@126.com</p>
                </div>
                {postEle}
            </div>
        )
    }
};
export default Recruitment;